package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmPageDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialService extends IService<WmMaterial> {
    /**
     * 获取该用户的素材库
     * @param dto
     * @return
     */
    ResponseResult findList(WmPageDto dto);

    /**
     * 上传图片
     * @param file
     * @return
     */
    ResponseResult uploadPicture(MultipartFile file);
}
